public class Test {
    public static void main(String[] args) {
        //A.
        Student student = new Student(1,"普通学生");
        student.setter(70,80,90);
        StudentXW studentXW = new StudentXW(2,"学委");
        studentXW.setter(60,30,20);
        StudentBZ studentBZ = new StudentBZ(3,"班长");
        studentBZ.setter(66,88,55);
        //B.
        System.out.println(student);
        System.out.println(studentXW);
        System.out.println(studentBZ);
        //C.
        System.out.println(student.equals(studentBZ));
        //D.
        System.out.println(studentBZ.compare(studentXW));
        //E.
        System.out.println(student.name+":"+student.testScore());
        System.out.println(studentXW.name+":"+studentXW.testScore());
        System.out.println(studentBZ.name+":"+studentBZ.testScore());


    }
}
